<?php
function db_connect()
{
	$result = new mysqli ('localhost','root','123456','main');
	if (!$result){
		echo "Could not connect to database server";
		}
		else
		{
		return $result;
		}
	}
?>